package com.ycp.erp.bill.presenter;

import android.content.Context;

import com.one.common.presenter.BaseApiPresenter;
import com.one.common.view.base.BaseActivity;
import com.one.common.view.base.IListView;
import com.ycp.erp.bill.model.BillModel;
import com.ycp.erp.bill.model.bean.Bill;

import java.util.ArrayList;

/**
 * Class Des:
 * Created by bjh on 2021/9/7.
 */
public class BillPersenter extends BaseApiPresenter<IListView, BillModel> {
    public BillPersenter(IListView mView, Context mContext) {
        super((IListView) mView, mContext, new BillModel((BaseActivity) mContext));
    }
    public void getBills(int statue){
        ArrayList<Bill> bills=new ArrayList<>();
        bills.add(new Bill(statue));
        bills.add(new Bill(statue));
        bills.add(new Bill(statue));
        bills.add(new Bill(statue));
        bills.add(new Bill(statue));
        bills.add(new Bill(statue));
        mView.loadSuccess(bills);
    }
}
